.class public Lcom/htc/android/footprints/activity/ShowOnMapActivity;
.super Lcom/google/android/maps/MapActivity;
.source "ShowOnMapActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/activity/ShowOnMapActivity$FootprintQueryTask;,
        Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;
    }
.end annotation


# static fields
.field private static final TAG:Ljava/lang/String; = "ShowOnMapActivity"

.field private static curCategory:Lcom/htc/android/footprints/vo/Category;

.field private static zoomLevel:I


# instance fields
.field public mDataList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Footprint;",
            ">;"
        }
    .end annotation
.end field

.field private mMapController:Lcom/google/android/maps/MapController;

.field private mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

.field private mMapView:Lcom/google/android/maps/MapView;

.field private mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

.field private mNote:Landroid/widget/TextView;

.field private mTitleView:Landroid/widget/TextView;

.field private needMyLocation:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 46
    invoke-direct {p0}, Lcom/google/android/maps/MapActivity;-><init>()V

    .line 51
    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mDataList:Ljava/util/ArrayList;

    .line 54
    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    .line 57
    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    .line 59
    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    .line 67
    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    .line 592
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)Lcom/google/android/maps/MapController;
    .locals 1
    .parameter "x0"

    .prologue
    .line 46
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 46
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->pasteNetworkDisabledText()V

    return-void
.end method

.method static synthetic access$400()Lcom/htc/android/footprints/vo/Category;
    .locals 1

    .prologue
    .line 46
    sget-object v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    return-object v0
.end method

.method static synthetic access$500()I
    .locals 1

    .prologue
    .line 46
    sget v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    return v0
.end method

.method static synthetic access$502(I)I
    .locals 0
    .parameter "x0"

    .prologue
    .line 46
    sput p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    return p0
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)Lcom/google/android/maps/MapView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 46
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    return-object v0
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/ShowOnMapActivity;[Lcom/htc/android/footprints/vo/Footprint;Ljava/lang/Runnable;)I
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"

    .prologue
    .line 46
    invoke-direct {p0, p1, p2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomToFitItems([Lcom/htc/android/footprints/vo/Footprint;Ljava/lang/Runnable;)I

    move-result v0

    return v0
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;
    .locals 1
    .parameter "x0"

    .prologue
    .line 46
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    return-object v0
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)Lcom/google/android/maps/MyLocationOverlay;
    .locals 1
    .parameter "x0"

    .prologue
    .line 46
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    return-object v0
.end method

.method private checkLocationSources()V
    .locals 4

    .prologue
    .line 673
    const-string v1, "location"

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/location/LocationManager;

    .line 675
    .local v0, service:Landroid/location/LocationManager;
    const-string v1, "gps"

    invoke-virtual {v0, v1}, Landroid/location/LocationManager;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "network"

    invoke-virtual {v0, v1}, Landroid/location/LocationManager;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 676
    :cond_0
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a0092

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x1080027

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0093

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a009d

    new-instance v3, Lcom/htc/android/footprints/activity/ShowOnMapActivity$6;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$6;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0004

    new-instance v3, Lcom/htc/android/footprints/activity/ShowOnMapActivity$5;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$5;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->show()Lcom/htc/widget/HtcAlertDialog;

    .line 692
    :cond_1
    return-void
.end method

.method private networkConnected()Z
    .locals 5

    .prologue
    .line 290
    const/4 v0, 0x1

    .line 291
    .local v0, connected:Z
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 292
    .local v1, connectivity:Landroid/net/ConnectivityManager;
    if-eqz v1, :cond_0

    .line 293
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v2

    .line 294
    .local v2, info:Landroid/net/NetworkInfo;
    if-eqz v2, :cond_1

    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v3

    sget-object v4, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v3, v4, :cond_1

    .line 302
    .end local v2           #info:Landroid/net/NetworkInfo;
    :cond_0
    :goto_0
    return v0

    .line 297
    .restart local v2       #info:Landroid/net/NetworkInfo;
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private pasteNetworkDisabledText()V
    .locals 8

    .prologue
    const/16 v4, 0xa

    const/4 v2, 0x5

    const/4 v3, 0x0

    .line 306
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 307
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    .line 308
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    const v1, 0x7f0a0091

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 309
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    const v1, -0xcccccd

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 311
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    invoke-virtual {v0, v4, v2, v4, v2}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 312
    iget-object v6, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const/16 v5, 0x33

    move v4, v3

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v6, v7, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 316
    :cond_0
    return-void
.end method

.method private updateView()V
    .locals 4

    .prologue
    .line 277
    const-string v0, "Sam"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "curCategory "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    sget-object v2, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 278
    sget-object v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v1

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/vo/Category;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 280
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mTitleView:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a0058

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 286
    :goto_0
    new-instance v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity$FootprintQueryTask;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$FootprintQueryTask;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;Lcom/htc/android/footprints/activity/ShowOnMapActivity$1;)V

    const/4 v1, 0x1

    new-array v1, v1, [Lcom/htc/android/footprints/vo/Category;

    const/4 v2, 0x0

    sget-object v3, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$FootprintQueryTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 287
    return-void

    .line 283
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mTitleView:Landroid/widget/TextView;

    sget-object v1, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method private zoomToFitItems([Lcom/htc/android/footprints/vo/Footprint;Ljava/lang/Runnable;)I
    .locals 21
    .parameter "footprints"
    .parameter "finishedRunnable"

    .prologue
    .line 329
    move-object/from16 v0, p1

    array-length v0, v0

    move/from16 v17, v0

    const/16 v18, 0x1

    move/from16 v0, v17

    move/from16 v1, v18

    if-ge v0, v1, :cond_0

    .line 330
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v17

    .line 365
    :goto_0
    return v17

    .line 333
    :cond_0
    const v14, 0x55d4a80

    .line 334
    .local v14, minLat:I
    const v12, -0x55d4a80

    .line 335
    .local v12, maxLat:I
    const v15, 0xaba9500

    .line 336
    .local v15, minLon:I
    const v13, -0xaba9500

    .line 337
    .local v13, maxLon:I
    move-object/from16 v3, p1

    .local v3, arr$:[Lcom/htc/android/footprints/vo/Footprint;
    array-length v10, v3

    .local v10, len$:I
    const/4 v8, 0x0

    .local v8, i$:I
    :goto_1
    if-ge v8, v10, :cond_1

    aget-object v7, v3, v8

    .line 338
    .local v7, footprint:Lcom/htc/android/footprints/vo/Footprint;
    iget v9, v7, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 339
    .local v9, latitudeE6:I
    iget v11, v7, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 340
    .local v11, longitudeE6:I
    invoke-static {v12, v9}, Ljava/lang/Math;->max(II)I

    move-result v12

    .line 341
    invoke-static {v14, v9}, Ljava/lang/Math;->min(II)I

    move-result v14

    .line 342
    invoke-static {v13, v11}, Ljava/lang/Math;->max(II)I

    move-result v13

    .line 343
    invoke-static {v15, v11}, Ljava/lang/Math;->min(II)I

    move-result v15

    .line 337
    add-int/lit8 v8, v8, 0x1

    goto :goto_1

    .line 346
    .end local v7           #footprint:Lcom/htc/android/footprints/vo/Footprint;
    .end local v9           #latitudeE6:I
    .end local v11           #longitudeE6:I
    :cond_1
    sub-int v17, v12, v14

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->abs(I)I

    move-result v17

    move/from16 v0, v17

    int-to-double v0, v0

    move-wide/from16 v17, v0

    const-wide v19, 0x3ff6666666666666L

    mul-double v17, v17, v19

    move-wide/from16 v0, v17

    double-to-int v0, v0

    move v5, v0

    .line 347
    .local v5, fitLat:I
    sub-int v17, v13, v15

    invoke-static/range {v17 .. v17}, Ljava/lang/Math;->abs(I)I

    move-result v17

    move/from16 v0, v17

    int-to-double v0, v0

    move-wide/from16 v17, v0

    const-wide v19, 0x3ff3333333333333L

    mul-double v17, v17, v19

    move-wide/from16 v0, v17

    double-to-int v0, v0

    move v6, v0

    .line 351
    .local v6, fitLot:I
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move v1, v5

    move v2, v6

    invoke-virtual {v0, v1, v2}, Lcom/google/android/maps/MapController;->zoomToSpan(II)V

    .line 352
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->changeZoom()V
    :try_end_0
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_0

    .line 360
    :goto_2
    new-instance v16, Lcom/google/android/maps/GeoPoint;

    add-int v17, v12, v14

    div-int/lit8 v17, v17, 0x2

    add-int v18, v13, v15

    div-int/lit8 v18, v18, 0x2

    invoke-direct/range {v16 .. v18}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 363
    .local v16, newCenter:Lcom/google/android/maps/GeoPoint;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    move-object/from16 v17, v0

    move-object/from16 v0, v17

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    .line 365
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v17

    goto/16 :goto_0

    .line 353
    .end local v16           #newCenter:Lcom/google/android/maps/GeoPoint;
    :catch_0
    move-exception v17

    move-object/from16 v4, v17

    .line 354
    .local v4, e:Ljava/lang/OutOfMemoryError;
    const-string v17, "ShowOnMapActivity"

    invoke-virtual {v4}, Ljava/lang/OutOfMemoryError;->getMessage()Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v17

    move-object/from16 v1, v18

    move-object v2, v4

    invoke-static {v0, v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 355
    invoke-static {}, Ljava/lang/System;->gc()V

    goto :goto_2
.end method


# virtual methods
.method public fitAll()V
    .locals 3

    .prologue
    .line 641
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mDataList:Ljava/util/ArrayList;

    .line 642
    .local v0, fList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    .line 643
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    new-array v1, v1, [Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [Lcom/htc/android/footprints/vo/Footprint;

    const/4 v2, 0x0

    invoke-direct {p0, v1, v2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomToFitItems([Lcom/htc/android/footprints/vo/Footprint;Ljava/lang/Runnable;)I

    move-result v1

    sput v1, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    .line 646
    :cond_0
    return-void
.end method

.method public isEmpty()Z
    .locals 1

    .prologue
    .line 262
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mDataList:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mDataList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected isRouteDisplayed()Z
    .locals 1

    .prologue
    .line 267
    const/4 v0, 0x0

    return v0
.end method

.method public moveTo(Lcom/htc/android/footprints/vo/Footprint;Lcom/htc/android/footprints/vo/Category;)V
    .locals 2
    .parameter "footprint"
    .parameter "category"

    .prologue
    .line 271
    invoke-virtual {p0, p2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 272
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v0, p1, v1}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->jump(Lcom/htc/android/footprints/vo/Footprint;Lcom/google/android/maps/MapView;)V

    .line 274
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 9
    .parameter "icicle"

    .prologue
    const/4 v7, 0x0

    const/4 v6, -0x2

    .line 73
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreate(Landroid/os/Bundle;)V

    .line 74
    const/4 v5, 0x1

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->requestWindowFeature(I)Z

    .line 75
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getWindow()Landroid/view/Window;

    move-result-object v5

    invoke-virtual {v5, v7}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 76
    const v5, 0x7f030025

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->setContentView(I)V

    .line 77
    const v5, 0x7f0c0099

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Lcom/google/android/maps/MapView;

    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    .line 78
    iget-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v5}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v5

    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    .line 79
    iget-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v5}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v5

    sput v5, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    .line 81
    const v5, 0x7f0c009a

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 83
    .local v4, zoomLayout:Landroid/widget/LinearLayout;
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v6, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 110
    .local v2, params:Landroid/widget/LinearLayout$LayoutParams;
    iget-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v5}, Lcom/google/android/maps/MapView;->getZoomControls()Landroid/view/View;

    move-result-object v1

    .line 111
    .local v1, control:Landroid/view/View;
    instance-of v5, v1, Landroid/widget/ZoomControls;

    if-eqz v5, :cond_0

    .line 112
    move-object v0, v1

    check-cast v0, Landroid/widget/ZoomControls;

    move-object v3, v0

    .line 114
    .local v3, zControls:Landroid/widget/ZoomControls;
    invoke-virtual {v4, v3, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 115
    new-instance v5, Lcom/htc/android/footprints/activity/ShowOnMapActivity$1;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$1;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    invoke-virtual {v3, v5}, Landroid/widget/ZoomControls;->setOnZoomInClickListener(Landroid/view/View$OnClickListener;)V

    .line 127
    new-instance v5, Lcom/htc/android/footprints/activity/ShowOnMapActivity$2;

    invoke-direct {v5, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$2;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    invoke-virtual {v3, v5}, Landroid/widget/ZoomControls;->setOnZoomOutClickListener(Landroid/view/View$OnClickListener;)V

    .line 140
    .end local v3           #zControls:Landroid/widget/ZoomControls;
    :cond_0
    const v5, 0x7f0c0098

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mTitleView:Landroid/widget/TextView;

    .line 142
    new-instance v5, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    invoke-direct {v5, p0, v7}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;Lcom/htc/android/footprints/activity/ShowOnMapActivity$1;)V

    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    .line 143
    iget-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v5}, Lcom/google/android/maps/MapView;->getOverlays()Ljava/util/List;

    move-result-object v5

    iget-object v6, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 147
    new-instance v5, Lcom/google/android/maps/MyLocationOverlay;

    iget-object v6, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-direct {v5, p0, v6}, Lcom/google/android/maps/MyLocationOverlay;-><init>(Landroid/content/Context;Lcom/google/android/maps/MapView;)V

    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    .line 150
    iget-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v5}, Lcom/google/android/maps/MapView;->getOverlays()Ljava/util/List;

    move-result-object v5

    iget-object v6, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 152
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v5

    iget-boolean v5, v5, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    if-nez v5, :cond_1

    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->networkConnected()Z

    move-result v5

    if-nez v5, :cond_1

    .line 154
    new-instance v5, Landroid/os/Handler;

    invoke-direct {v5}, Landroid/os/Handler;-><init>()V

    new-instance v6, Lcom/htc/android/footprints/activity/ShowOnMapActivity$3;

    invoke-direct {v6, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$3;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    const-wide/16 v7, 0x1f4

    invoke-virtual {v5, v6, v7, v8}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 162
    :cond_1
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f020093

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->boundCenterBottom(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    sput-object v5, Lcom/htc/android/footprints/commonui/TBarDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    .line 164
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f020094

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->boundCenterBottom(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    sput-object v5, Lcom/htc/android/footprints/commonui/TBarDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    .line 168
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f020090

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->boundCenterBottom(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    sput-object v5, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    .line 171
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f020091

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    invoke-static {v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->boundCenterBottom(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object v5

    sput-object v5, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    .line 175
    const/4 v5, 0x0

    iput-boolean v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->needMyLocation:Z

    .line 176
    return-void
.end method

.method public onDestroy()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 234
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onDestroy()V

    .line 235
    const-string v0, "Sam"

    const-string v1, "onDestroy "

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 236
    sput-object v2, Lcom/htc/android/footprints/commonui/TBarDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    .line 237
    sput-object v2, Lcom/htc/android/footprints/commonui/TBarDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    .line 238
    sput-object v2, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mBoard:Landroid/graphics/drawable/Drawable;

    .line 239
    sput-object v2, Lcom/htc/android/footprints/commonui/TBarGroupDrawable;->mSelectedBoard:Landroid/graphics/drawable/Drawable;

    .line 242
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;->release()V

    .line 243
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->getOverlays()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 247
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mDataList:Ljava/util/ArrayList;

    .line 251
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapOverlay:Lcom/htc/android/footprints/activity/ShowOnMapActivity$DrawFootprintOverlay;

    .line 252
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    if-eqz v0, :cond_0

    .line 253
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v0}, Lcom/google/android/maps/MyLocationOverlay;->disableMyLocation()V

    .line 256
    :cond_0
    iput-object v2, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    .line 257
    return-void
.end method

.method protected onPause()V
    .locals 3

    .prologue
    const/4 v0, 0x0

    .line 217
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onPause()V

    .line 218
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getZoomLevel()I

    move-result v1

    sput v1, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    .line 219
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "display"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 220
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "category"

    check-cast v0, Landroid/os/Parcelable;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 224
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v0}, Lcom/google/android/maps/MyLocationOverlay;->isMyLocationEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 225
    iget-object v0, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v0}, Lcom/google/android/maps/MyLocationOverlay;->disableMyLocation()V

    .line 228
    :cond_0
    invoke-static {}, Ljava/lang/System;->gc()V

    .line 229
    return-void
.end method

.method public onResume()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 179
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onResume()V

    .line 180
    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->needMyLocation:Z

    if-eqz v3, :cond_0

    .line 181
    iget-object v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v3}, Lcom/google/android/maps/MyLocationOverlay;->enableMyLocation()Z

    .line 184
    :cond_0
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 185
    .local v1, intent:Landroid/content/Intent;
    const-string v3, "category"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v2

    check-cast v2, Lcom/htc/android/footprints/vo/Category;

    .line 187
    .local v2, pCategory:Lcom/htc/android/footprints/vo/Category;
    if-nez v2, :cond_1

    .line 188
    sget-object v3, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    if-eqz v3, :cond_3

    .line 189
    sget-object v2, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    .line 195
    :cond_1
    :goto_0
    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 197
    const-string v3, "display"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 200
    .local v0, footprintList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    if-eqz v0, :cond_4

    .line 201
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    new-array v3, v3, [Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v3

    check-cast v3, [Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {p0, v3, v5}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomToFitItems([Lcom/htc/android/footprints/vo/Footprint;Ljava/lang/Runnable;)I

    move-result v3

    sput v3, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    .line 208
    :goto_1
    iget-object v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    if-eqz v3, :cond_2

    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->networkConnected()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 209
    iget-object v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    invoke-virtual {v3, v4}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 210
    iput-object v5, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mNote:Landroid/widget/TextView;

    .line 212
    :cond_2
    return-void

    .line 191
    .end local v0           #footprintList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    :cond_3
    invoke-static {}, Lcom/htc/android/footprints/vo/Category;->getAllCategory()Lcom/htc/android/footprints/vo/Category;

    move-result-object v2

    goto :goto_0

    .line 204
    .restart local v0       #footprintList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    :cond_4
    iget-object v3, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapController:Lcom/google/android/maps/MapController;

    sget v4, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->zoomLevel:I

    invoke-virtual {v3, v4}, Lcom/google/android/maps/MapController;->setZoom(I)I

    goto :goto_1
.end method

.method public setCategory(Lcom/htc/android/footprints/vo/Category;)V
    .locals 0
    .parameter "category"

    .prologue
    .line 320
    sput-object p1, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->curCategory:Lcom/htc/android/footprints/vo/Category;

    .line 324
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->updateView()V

    .line 326
    return-void
.end method

.method public showMyLocation()V
    .locals 3

    .prologue
    .line 649
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->checkLocationSources()V

    .line 651
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v1}, Lcom/google/android/maps/MyLocationOverlay;->isMyLocationEnabled()Z

    move-result v1

    if-nez v1, :cond_0

    .line 652
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v1}, Lcom/google/android/maps/MyLocationOverlay;->enableMyLocation()Z

    .line 653
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->needMyLocation:Z

    .line 655
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    invoke-virtual {v1}, Lcom/google/android/maps/MyLocationOverlay;->getMyLocation()Lcom/google/android/maps/GeoPoint;

    move-result-object v0

    .line 657
    .local v0, gp:Lcom/google/android/maps/GeoPoint;
    if-nez v0, :cond_1

    .line 658
    const v1, 0x7f0a00b9

    const/16 v2, 0x3e8

    invoke-static {p0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 660
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMyLocation:Lcom/google/android/maps/MyLocationOverlay;

    new-instance v2, Lcom/htc/android/footprints/activity/ShowOnMapActivity$4;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/activity/ShowOnMapActivity$4;-><init>(Lcom/htc/android/footprints/activity/ShowOnMapActivity;)V

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MyLocationOverlay;->runOnFirstFix(Ljava/lang/Runnable;)Z

    .line 670
    :goto_0
    return-void

    .line 667
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/ShowOnMapActivity;->mMapView:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    goto :goto_0
.end method
